package datatype;

/**
 * @author Artur Tolstenco
 * 
 * DijkstraVertex is the data type used only by DijkstraAlgorithm and CasdProject.
 * It contains the (true, in the graph) vertex that it represents, 
 * minimumDistance is used by Dijkstra algorithm and PriorityQueue,
 * parent is also used by Dijkstra algorithm
 * *
 */

public class DijkstraVertex {
	private Vertex vertex;
	private double minimumDistance;
	private Vertex parent;

	public DijkstraVertex(Vertex vertex, double minimumDistance, Vertex parent) {
		this.vertex = vertex;
		this.minimumDistance = minimumDistance;
		this.parent = parent;
	}

	/**
	 * @return the parent
	 */
	public Vertex getParent() {
		return parent;
	}

	/**
	 * @param minimumDistance the minimumDistance to set
	 */
	public void setMinimumDistance(double minimumDistance) {
		this.minimumDistance = minimumDistance;
	}

	/**
	 * @param parent the parent to set
	 */
	public void setParent(Vertex parent) {
		this.parent = parent;
	}

	/**
	 * @return the minimumDistance
	 */
	public double getMinimumDistance() {
		return minimumDistance;
	}
	
	/**
	 * @return the vertex
	 */
	public Vertex getVertex() {
		return vertex;
	}
	
	
}
